<style type="text/css">
    .bjui-pageHeader{
        font-size: 18px;
        font-weight: bold;
    }
    .form{
        padding: 15px;
    }
    .form dl {
        overflow: hidden;
        padding-top: 15px;
    }

    .form dt {
        color: #666;
        float: left;
        font-size: 14px;
        padding: 3px 0 0;
        width: 11%;
    }
    .form dd {
        float: left;
        line-height: 22px;
    }
    dd.desc {
        height: 30px;
        padding: 0 10px;
        width: 150px;
    }
</style>
<div class="bjui-pageHeader">
    <div class="glyphicon glyphicon-th-large">修改权限</div>
</div>
<div class="bjui-pageContent">
    <div class="form">
        <form method='post' data-toggle="validate" action="{:U('Auth/runEditRule')}">
            <dl>
                <dt>规则简述：</dt>
                <dd>
                    <input type="text" name="ruleTitle" class="input-nm" size="30" value="{$role['title']}"/>
                </dd>
            </dl>
            <dl>
                <dt>规则标识：</dt>
                <dd>
                    <input type="text" name="ruleName" class="input-nm" size="30" value="{$role['name']}"/>
                </dd>
            </dl>
            <dl>
                <dt>附加条件：</dt>
                <dd>
                    <input type="text" name="condition" class="input-nm" size="30" value="{$role['condition']}"/>
                </dd>
            </dl>
            <dl>
                <dt>开启：</dt>
                <dd>
                    <input type="radio" name="status" value="1" <if condition="$role['status']">checked="checked"</if>
                />
                        开启
                <input type="radio" name="status" value="0" <if condition="$role['status'] eq 0">checked="checked"</if>
            >
                        关闭
        </dd>
    </dl>
    <dl>
        <dt>所属分组：</dt>
        <dd>
            <select name="mid"  data-toggle="selectpicker" data-width="200">
                <volist name="modules" id="vo">
                    <option value="{$vo['id']}" <if condition="$role['mid'] eq $vo['id']">selected="selected"</if>
                    >{$vo['moduleName']}
                </option>
            </volist>
        </select>
    </dd>
</dl>
    <input type="hidden" name="id" value="{$id}">
</form>
</div>
</div>
<div class="bjui-pageFooter">
<ul>
<li>
<button type="button" class="btn-close" data-icon="close">关闭</button>
</li>
<li>
<button data-icon="save" class="btn btn-default" type="submit">保存</button>
</li>
</ul>
</div>